//
//  CMDBMovieDetailStaffViewController.swift
//  CMDB
//
//  Created by 曹桂祥 on 2017/5/9.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBMovieDetailStaffViewController: CMDBBaseViewController{
    
    var tableView : CMDBMovieStaffTableView!
    
    override func setup() {
        super.setup()
        
        buildTableView()
    }
}


extension CMDBMovieDetailStaffViewController{
    
    func buildTableView(){
        
        let contentH     = CMDB_Screen_Height - KStatusBarHeight - KNavBarHeight - 44 - 0.5 * CMDB_Screen_Width
        
        let contentFrame = CGRect(x: 0, y: 0, width: CMDB_Screen_Width, height: contentH)
        
        tableView                              = CMDBMovieStaffTableView(frame: contentFrame)
        tableView.separatorStyle               = .None
        tableView.showsVerticalScrollIndicator = false
        tableView.mDelegate                    = self
        tableView.backgroundColor              = UIColor.Hex6(0x000000, alpha: 0.12)
        
        view.addSubview(tableView)
    }
}

extension CMDBMovieDetailStaffViewController{
    
    override func onItemClickType(itemClickType: String?, data: AnyObject?, indexPath: NSIndexPath?) {
        printLog("CMDBMovieDetatilViewController staff")
    }
    
}
